package com.nuit.cxl.aop;

import com.nuit.cxl.aop.bilibili.config.SpringConfig;
import com.nuit.cxl.aop.bilibili.dao.RecommendDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

//@SpringBootApplication
public class Application {

    public static void main(String[] args) {

//        SpringApplication.run(Application.class, args);
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        RecommendDao recommendDao = ctx.getBean(RecommendDao.class);
        recommendDao.update();
        recommendDao.insert();

    }

}
